import java.util.Date;

abstract class Ouvrage
{
	private Date borrowDate;
	private int cote = 0;

	public Ouvrage(Date bd)
	{
		borrowDate = bd;
	}

	public Ouvrage()
	{
		this(null);
	}

	public String toString()
	{
		return cote + (borrowDate==null ? "" : " (depuis "+borrowDate+")");
	}


	public int getCote() {return cote;}
	public void setCote(int x) {cote = x;}

	public Date getBorrowDate() {return borrowDate;}
	public void setBorrowDate(Date t) {borrowDate = t;}
}
